package com.team.mp.mapper.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.team.mp.mapper.entity.SysUserRole;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 用户角色表(SysUserRole)表数据库访问层
 *
 * @author makejava
 * @since 2023-03-27 16:33:26
 */
public interface SysUserRoleDao extends BaseMapper<SysUserRole> {
    @Update("update sys_user_role set role_id=#{rid} where user_id=#{uid}")
    int udpateByUid(@Param("uid") int uid, @Param("rid") int rid);
}

